﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tisonet.Dobrak.Domain.Models;
using Tisonet.Dobrak.Domain.Services.Movies;

namespace Tisonet.Dobrak.Services.Movies
{
    public class MoviesService : IMoviesService
    {
        private readonly IMoviesProvider _moviesProvider;

        public MoviesService(IMoviesProvider moviesProvider)
        {
            _moviesProvider = moviesProvider;
        }

        public async Task<Movie> GetMovieAsync(string movieName)
        {
            return await _moviesProvider.GetMovieAsync(movieName);
        }
    }
}
